<?php
use Core\Response;
class base {
    public function __construct()
    {
        if (php_sapi_name() !== 'cli') {
            Response::error('非法访问');
        }
    }
}